public class Ferrari extends SportCar {
	private String colour;
	private int productionYear;

	Ferrari(int numberOfDoors, boolean isSportCar, boolean isCabriolet, double price, int year) {
		super(numberOfDoors, isSportCar, isCabriolet, price);
		this.colour = "Red";
		isCabriolet=true;
		productionYear=year;
		}



	public String getColour() {
		return colour;
	}

	public void setColour(String colour) {
		if (colour != null)
			this.colour = colour;
	}

	public int getProductionYear() {
		return productionYear;
	}

	public void setProductionYear(int productionYear) {
		if (productionYear > 1930)
			this.productionYear = productionYear;
	}

}
